import Cookie from 'js-cookie'

// 存储

export function setCookie (key, value, expires = 7) {
  Cookie.set(key, value, { expires })
}

// 获取

export function getCookie (key) {
  return Cookie.get(key)
}

// 删除

export function removeCookie (key) {
  Cookie.remove(key)
}
